/**
 * Copyright 2007-2008. Chongqing First Information & Network Co., Ltd. All
 * rights reserved. <a>http://www.cqfirst.com.cn</a>
 */
package com.cqcis.uip.base.filelog.log.service.impl;

import java.util.List;

import com.cqcis.uip.base.filelog.log.dao.InterfaceLogDao;
import com.cqcis.uip.base.framework.common.InterfaceLog;
import com.cqcis.uip.base.framework.service.InterfaceLogService;


/**
 * @author huangmy
 * @date   2007-12-21
 */
public class InterfaceLogServiceImpl implements InterfaceLogService {
    private InterfaceLogDao logDao;  // 接口日志DAO
	    
	public synchronized void insert(InterfaceLog log) {
		logDao.insert(log);		
	}

	public synchronized void insert(List<InterfaceLog> logs) {
		for (InterfaceLog log : logs) {
			logDao.insert(log);
		}		
	}

	public synchronized String getCurrentTime() {		
		return logDao.getCurrentTime();
	}
	
	public void setLogDao(InterfaceLogDao logDao) {
		this.logDao = logDao;
	}
}
